<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition template="/pages/sablon/sablon.xhtml"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui" 
                xmlns:aym="http://aym.com/facelets">


    <ui:define name="title">
        Baslik
    </ui:define>
    <ui:define name="content">

        <h:form>

            <p:panel header="Deneme">
                <h:panelGrid columns="2">

                    <h:outputLabel value="#{lbl.kullanici_adi}"/>
                    <p:inputText id="userName" value="#{kullaniciMB.ad}" required="true"/>

                    <h:outputLabel value="#{lbl.kullanici_soyadi}"/>
                    <p:inputText id="userSurname" value="#{kullaniciMB.soyad}" required="true"/>

                    <h:outputLabel value="#{lbl.durum}"/>
                    <p:selectOneMenu value="#{kullaniciMB.durum}" >
                        <f:selectItems value="#{kullaniciMB.durumList}" var="drm" itemValue="#{drm}" itemLabel="#{lbl[drm.label]}" /> 
                    </p:selectOneMenu>

                    <p:commandButton ajax="true" action="#{kullaniciMB.addKullanici()}" value="#{lbl.kaydet}" icon="ui-icon-wrench" style="margin:0" >
                        <p:confirm header="#{lbl.kaydet}" message="#{msg.islemi_onayliyormusunuz}"  />
                    </p:commandButton>

                    <p:commandButton id="reset1" value="Reset" action="#{kullaniciMB.reset()}" ajax="false" immediate="true"/>

                </h:panelGrid>
            </p:panel>

        </h:form>

    </ui:define>

</ui:composition>
